import request from "@/utils/request";


export const queryPageApi = (params) => request.get("/roles", { params :params});

export const addApi = (data) => request.post("/roles", data);

//根据ID查询角色
export const queryByIdApi = (id) => request.get(`/roles/${id}`)


//修改角色
export const updateApi = (data) => request.put('/roles', data)

//删除角色
export const deleteApi = (id) => request.delete(`/roles/${id}`)